﻿using System;
using System.Linq.Expressions;

namespace Fuse8.ContentManagementFramework.BizFacade.Services.Contents.Queryable
{
    /// <summary>
    /// Provides contract for supported IQueryable operations
    /// </summary>
    public interface ISupportedQueryableOperation
    {
        /// <summary>
        /// Operation name
        /// </summary>
        string Name { get; }

        /// <summary>
        /// Indicates that expression doe not return reader
        /// </summary>
        bool IsNonQuery { get; }

        /// <summary>
        /// Converter to expression for Query builder
        /// </summary>
        Func<MethodCallExpression, Expression> Converter { get; }

        /// <summary>
        /// 
        /// </summary>
        Action<CmsContentQueryBuilder, Expression> BuidAction { get; }
    }
}